<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>欢迎来到牛客网</p>
    <p>在这里，我们为你提供了IT名企的笔试面试题库</p>
    <p>在这里，我们以题会友</p>
    <p>QQ群号：272820159</p>
    <script>
       // document.getElementsByTagName
        let ptags = document.getElementsByTagName('p')
        for(let i=0;i<ptags.length;i++){
            ptags[i].style.color ="#f00"
        }
    </script>
</body>
</html>